<?php
require(dirname(__FILE__) .'/check.php');
$skin->CheckIframe();

/* **** 版权所有 ****

 程序开发：网钛科技
 网钛CMS官网：http://otcms.com
 网钛IDC官网：http://idccms.com
 ＱＱ：877873666
 微信：QQ877873666
 邮箱：877873666@qq.com

 **** 版权所有 **** */


//打开用户表，并检测用户是否登录
$MB->Open('','login');

$skin->WebTop();


echo('
<script language="javascript" type="text/javascript" src="js/tplSys.js?v='. OT_VERSION .'"></script>
');


switch($mudi){
	case 'setInfo':
		$MB->IsSecMenuRight('alertBack',229,$dataType);
		SetInfo();
		break;

	default:
		die('err');
}

$skin->WebBottom();

$MB->Close();
$DB->Close();





// 设置
function SetInfo(){
	global $DB,$skin,$mudi,$dataType,$dataTypeCN,$sysAdminArr,$systemArr;

	$revexe = $DB->query('select * from '. OT_dbPref .'tplSys');
		if ($row = $revexe->fetch()){
			$TS_skinName		= $row['TS_skinName'];
			$TS_skinColor		= $row['TS_skinColor'];
			$TS_skinPopup		= $row['TS_skinPopup'];

			$TS_topLogoMode		= $row['TS_topLogoMode'];
			$TS_logo			= $row['TS_logo'];
			$TS_fullLogo		= $row['TS_fullLogo'];
			$TS_logoExt			= $row['TS_logoExt'];
			$TS_logoW			= $row['TS_logoW'];
				if ($TS_logoW <= 0){ $TS_logoW = 200; }
			$TS_logoH			= $row['TS_logoH'];
				if ($TS_logoH<=0){ $TS_logoH=60; }
			$TS_isRss			= $row['TS_isRss'];
			$TS_isTopAd			= $row['TS_isTopAd'];
			$TS_topAdCode		= $row['TS_topAdCode'];
			$TS_searchArea		= $row['TS_searchArea'];

			$TS_isLogoAdd		= $row['TS_isLogoAdd'];
			$TS_logoAddAnnoun	= $row['TS_logoAddAnnoun'];
			$TS_logoAreaStr		= $row['TS_logoAreaStr'];
			$TS_logoListMode	= $row['TS_logoListMode'];
			$TS_TCP				= $row['TS_TCP'];
			$TS_beianName		= $row['TS_beianName'];
			$TS_beianUrl		= $row['TS_beianUrl'];
			$TS_copyright		= $row['TS_copyright'];
			$TS_isStati			= $row['TS_isStati'];
			$TS_statiCode		= $row['TS_statiCode'];

			$TS_homeAboutID			= $row['TS_homeAboutID'];
			$TS_homeAboutMoreID		= $row['TS_homeAboutMoreID'];
			$TS_homeContactID		= $row['TS_homeContactID'];
			$TS_homeContactMoreID	= $row['TS_homeContactMoreID'];
			$TS_homeNewsID			= $row['TS_homeNewsID'];
			$TS_homeNewsNum			= $row['TS_homeNewsNum'];
			$TS_homeProID			= $row['TS_homeProID'];
			$TS_homeProNum			= $row['TS_homeProNum'];
			$TS_homeInfoTypeID		= $row['TS_homeInfoTypeID'];

			$TS_navWidthMode	= $row['TS_navWidthMode'];
			$TS_jieriImg		= $row['TS_jieriImg'];
			$TS_jieriHeight		= $row['TS_jieriHeight'];
			$TS_navMode			= $row['TS_navMode'];
			$TS_navCode			= $row['TS_navCode'];
			$TS_navNum			= $row['TS_navNum'];
			$TS_navPadd			= $row['TS_navPadd'];
			$TS_navSubWidth		= $row['TS_navSubWidth'];

			$TS_homeItemMode		= $row['TS_homeItemMode'];
			$TS_redTimeDay			= $row['TS_redTimeDay'];
			$TS_rankUserMode		= $row['TS_rankUserMode'];
			$TS_marInfoNum			= $row['TS_marInfoNum'];
			$TS_isHomeFlash			= $row['TS_isHomeFlash'];
			$TS_homeFlashMode		= $row['TS_homeFlashMode'];
			$TS_isHomeFlashTheme	= $row['TS_isHomeFlashTheme'];
			$TS_homeFlashNum		= $row['TS_homeFlashNum'];
			$TS_isHomeAnnoun		= $row['TS_isHomeAnnoun'];
			$TS_homeAnnounName		= $row['TS_homeAnnounName'];
			$TS_homeAnnounNum		= $row['TS_homeAnnounNum'];
			$TS_homeAnnounListNum	= $row['TS_homeAnnounListNum'];
			$TS_isHomeNew			= $row['TS_isHomeNew'];
			$TS_homeNewIsType		= $row['TS_homeNewIsType'];
			$TS_homeNewIsDate		= $row['TS_homeNewIsDate'];
			$TS_homeNewTopMode		= $row['TS_homeNewTopMode'];
			$TS_homeNewTopNum		= $row['TS_homeNewTopNum'];
			$TS_homeNewNum			= $row['TS_homeNewNum'];
			$TS_homeNewListNum		= $row['TS_homeNewListNum'];
			$TS_homeNewMoreNum		= $row['TS_homeNewMoreNum'];
			$TS_homeNewBoxH			= $row['TS_homeNewBoxH'];
			$TS_isHomeRecom			= $row['TS_isHomeRecom'];
			$TS_homeRecomImgNum		= $row['TS_homeRecomImgNum'];
			$TS_homeRecomNum		= $row['TS_homeRecomNum'];
			$TS_homeRecomBoxH		= $row['TS_homeRecomBoxH'];
			$TS_isHomeHot			= $row['TS_isHomeHot'];
			$TS_homeHotName			= $row['TS_homeHotName'];
			$TS_homeHotSort			= $row['TS_homeHotSort'];
			$TS_homeHotIsDate		= $row['TS_homeHotIsDate'];
			$TS_homeHotImgNum		= $row['TS_homeHotImgNum'];
			$TS_homeHotNum			= $row['TS_homeHotNum'];
			$TS_isHomeMarImg		= $row['TS_isHomeMarImg'];
			$TS_homeMarImgMode		= $row['TS_homeMarImgMode'];
			$TS_homeMarImgW			= $row['TS_homeMarImgW'];
			$TS_homeMarImgH			= $row['TS_homeMarImgH'];
			$TS_homeMarImgNum		= $row['TS_homeMarImgNum'];
			$TS_isHomeMessage		= $row['TS_isHomeMessage'];
			$TS_homeMessageName		= $row['TS_homeMessageName'];
			$TS_homeMessageNum		= $row['TS_homeMessageNum'];
			$TS_homeMessageLen		= $row['TS_homeMessageLen'];
			$TS_homeMessageHmode	= $row['TS_homeMessageHmode'];
			$TS_homeMessageH		= $row['TS_homeMessageH'];
			$TS_isHomeReply			= $row['TS_isHomeReply'];
			$TS_homeReplyName		= $row['TS_homeReplyName'];
			$TS_homeReplyNum		= $row['TS_homeReplyNum'];
			$TS_homeReplyLen		= $row['TS_homeReplyLen'];
			$TS_homeReplyHmode		= $row['TS_homeReplyHmode'];
			$TS_homeReplyH			= $row['TS_homeReplyH'];
			$TS_isHomeBbs			= $row['TS_isHomeBbs'];
			$TS_homeBbsName			= $row['TS_homeBbsName'];
			$TS_homeBbsNum			= $row['TS_homeBbsNum'];
			$TS_homeBbsLen			= $row['TS_homeBbsLen'];
			$TS_homeBbsHmode		= $row['TS_homeBbsHmode'];
			$TS_homeBbsH			= $row['TS_homeBbsH'];

			$TS_isHomeNewUsers		= $row['TS_isHomeNewUsers'];
			$TS_homeNewUsersName	= $row['TS_homeNewUsersName'];
			$TS_homeNewUsersNum		= $row['TS_homeNewUsersNum'];
			$TS_isHomeRankUsers		= $row['TS_isHomeRankUsers'];
			$TS_homeRankUsersName	= $row['TS_homeRankUsersName'];
			$TS_homeRankUsersType	= $row['TS_homeRankUsersType'];
			$TS_homeRankUsersNum	= $row['TS_homeRankUsersNum'];
			$TS_isHomeQiandao		= $row['TS_isHomeQiandao'];
			$TS_homeQiandaoName		= $row['TS_homeQiandaoName'];
			$TS_isQiandaoRank		= $row['TS_isQiandaoRank'];
			$TS_qiandaoRankName		= $row['TS_qiandaoRankName'];
			$TS_qiandaoRankType		= $row['TS_qiandaoRankType'];
			$TS_qiandaoRankNum		= $row['TS_qiandaoRankNum'];

			$TS_subWebLR			= $row['TS_subWebLR'];
			$TS_messageMode			= $row['TS_messageMode'];

			$TS_isImgBanner			= $row['TS_isImgBanner'];
			$TS_imgBannerH			= $row['TS_imgBannerH'];

			$TS_replyMode			= $row['TS_replyMode'];
			$TS_userListNum			= $row['TS_userListNum'];
			$TS_userListMode		= $row['TS_userListMode'];
			$TS_searchListMode		= $row['TS_searchListMode'];
			$TS_markListMode		= $row['TS_markListMode'];
			$TS_announListMode		= $row['TS_announListMode'];
			$TS_newListMode			= $row['TS_newListMode'];

			$TS_subWeb404			= $row['TS_subWeb404'];
			$TS_searchAllowStr		= $row['TS_searchAllowStr'];
			$TS_searchListNum		= $row['TS_searchListNum'];
			$TS_searchBadStr		= $row['TS_searchBadStr'];
			$TS_isMark				= $row['TS_isMark'];
			$TS_markListNum			= $row['TS_markListNum'];
			$TS_markBadStr			= $row['TS_markBadStr'];

			$TS_isMessage			= $row['TS_isMessage'];
			$TS_messageName			= $row['TS_messageName'];
			$TS_messageWebKey		= $row['TS_messageWebKey'];
			$TS_messageWebDesc		= $row['TS_messageWebDesc'];
			$TS_messageCloseNote	= $row['TS_messageCloseNote'];
			$TS_messageNum			= $row['TS_messageNum'];
			$TS_messageSecond		= $row['TS_messageSecond'];
			$TS_messageAudit		= $row['TS_messageAudit'];
			$TS_messageOnly			= $row['TS_messageOnly'];
			$TS_messageMaxLen		= $row['TS_messageMaxLen'];
			$TS_messageAdminName	= $row['TS_messageAdminName'];
			$TS_messageBadWord		= $row['TS_messageBadWord'];
			$TS_messageRndMd5		= $row['TS_messageRndMd5'];
			$TS_messageVoteNum		= $row['TS_messageVoteNum'];
			$TS_messageHotNum		= $row['TS_messageHotNum'];
			$TS_messageEvent		= $row['TS_messageEvent'];
			$TS_event				= $row['TS_event'];
			$TS_logoNote			= $row['TS_logoNote'];
			$TS_homeItemName		= $row['TS_homeItemName'];
			$TS_homeNewName			= $row['TS_homeNewName'];
			$TS_homeRecomName		= $row['TS_homeRecomName'];
			$TS_homeMarImgName		= $row['TS_homeMarImgName'];
			$TS_isQqServer			= $row['TS_isQqServer'];
			$TS_qqServerCode		= $row['TS_qqServerCode'];

			$TS_isHomeTag			= $row['TS_isHomeTag'];
			$TS_homeTagName			= $row['TS_homeTagName'];
			$TS_homeTagType			= $row['TS_homeTagType'];
			$TS_homeTagNum			= $row['TS_homeTagNum'];
			$TS_isListTag			= $row['TS_isListTag'];
			$TS_listTagName			= $row['TS_listTagName'];
			$TS_listTagType			= $row['TS_listTagType'];
			$TS_listTagNum			= $row['TS_listTagNum'];
			$TS_isHomeLogin			= $row['TS_isHomeLogin'];
			$TS_homeLoginName		= $row['TS_homeLoginName'];
			$TS_homeLoginBoxH		= $row['TS_homeLoginBoxH'];

			$TS_isSearch			= $row['TS_isSearch'];
			$TS_isJsAd				= $row['TS_isJsAd'];
			$TS_homeLoginStr1		= $row['TS_homeLoginStr1'];
			$TS_homeLoginStr2		= $row['TS_homeLoginStr2'];
			$TS_siteMapInfoNum		= $row['TS_siteMapInfoNum'];
			$TS_siteCss				= $row['TS_siteCss'];
			// $TS_siteWapCss			= $row['TS_siteWapCss'];
			$TS_isFuncDesc			= $row['TS_isFuncDesc'];	// 开启模块功能描述
			$TS_isOutUrl			= $row['TS_isOutUrl'];
			$TS_titleHome			= $row['TS_titleHome'];
			$TS_titleList			= $row['TS_titleList'];
			$TS_titleShow			= $row['TS_titleShow'];
			$TS_titleWeb			= $row['TS_titleWeb'];
			$TS_titleSearch			= $row['TS_titleSearch'];
			$TS_titleMark			= $row['TS_titleMark'];
			$TS_titleTopic			= $row['TS_titleTopic'];
			$TS_titleBbsHome		= $row['TS_titleBbsHome'];
			$TS_titleBbsList		= $row['TS_titleBbsList'];
			$TS_titleBbsShow		= $row['TS_titleBbsShow'];
			$TS_titleBbsSearch		= $row['TS_titleBbsSearch'];

			$TS_isJieri		= $row['TS_isJieri'];
			$TS_metaTag		= $row['TS_metaTag'];
			$TS_homeJumpUrl	= $row['TS_homeJumpUrl'];
			$TS_outUrlList	= $row['TS_outUrlList'];
		}
	unset($revexe);

	$beforeURL = GetUrl::CurrDir(1);

	$searchArea1		= '';
	$searchArea1_title	= '站内搜索(标题)';
	$searchArea1_rank	= '';
	$searchArea2		= '';
	$searchArea2_title	= '站内搜索(正文)';
	$searchArea2_rank	= '';
	$searchArea3		= '';
	$searchArea3_title	= '站内搜索(来源)';
	$searchArea3_rank	= '';
	$searchArea4		= '';
	$searchArea4_title	= '站内搜索(作者)';
	$searchArea4_rank	= '';
	$searchArea5		= '';
	$searchArea5_title	= '百度站内搜索';
	$searchArea5_rank	= '';
	$searchArea5_addi1	= '';
	$searchArea5_addi2	= '';
	$searchArea6		= '';
	$searchArea6_title	= '360站内搜索';
	$searchArea6_rank	= '';
	$searchArea6_addi1	= '';
	$searchArea6_addi2	= '';
	$searchAreaArr = explode('<arr>',$TS_searchArea);
	if (count($searchAreaArr) >= 5){
		$searchOneArr		= explode('|',$searchAreaArr[0]);
		$searchArea1		= $searchOneArr[0];
		$searchArea1_rank	= $searchOneArr[1];
		$searchArea1_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[1]);
		$searchArea2		= $searchOneArr[0];
		$searchArea2_rank	= $searchOneArr[1];
		$searchArea2_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[2]);
		$searchArea3		= $searchOneArr[0];
		$searchArea3_rank	= $searchOneArr[1];
		$searchArea3_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[3]);
		$searchArea4		= $searchOneArr[0];
		$searchArea4_rank	= $searchOneArr[1];
		$searchArea4_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[4]);
		$searchArea5		= $searchOneArr[0];
		$searchArea5_rank	= $searchOneArr[1];
		$searchArea5_title	= $searchOneArr[3];
		$searchArea5_addi1	= $searchOneArr[4];
		$searchArea5_addi2	= $searchOneArr[5];
	}
	if (count($searchAreaArr) >= 6){
		$searchOneArr		= explode('|',$searchAreaArr[5]);
		$searchArea6		= $searchOneArr[0];
		$searchArea6_rank	= $searchOneArr[1];
		$searchArea6_title	= $searchOneArr[3];
		$searchArea6_addi1	= $searchOneArr[4];
	}

	$eventStr = '';
	$itemArr = array(
		'homeItemModeIsImg'	=> true,
		'homeItemMode_2'	=> '左两栏右热门文章',
		'homeItemMode_3'	=> '全三栏',
		);

	switch ($systemArr['SYS_templateDir']){
		case 'def_blog/':		// 使用 博客风格
			$eventStr = '
				<label><input type="checkbox" name="event[]" value="|noTop|" '. Is::InstrChecked($TS_event,'|noTop|') .'/>关闭自带回顶到底图标</label>&ensp;&ensp;
				';
			break;
	
		case 'def_black/':		// 使用 清爽黑白调模板
			$itemArr['homeItemModeIsImg']	= false;
			$itemArr['homeItemMode_2']		= '选项卡切换';
			break;
	
		case 'def_white/':		// 使用 清爽白色风
			$eventStr = '
				<label><input type="checkbox" name="event[]" value="|noTop|" '. Is::InstrChecked($TS_event,'|noTop|') .'/>关闭自带回顶部火箭图标</label>&ensp;&ensp;
				<label><input type="checkbox" name="event[]" value="|noInfoCount|" '. Is::InstrChecked($TS_event,'|noInfoCount|') .'/>关闭[最新消息]文章总数</label>&ensp;&ensp;
				';
			break;
	
		case 'def_media/':		// 使用 新媒体模板
			$itemArr['homeItemModeIsImg']	= false;
			$itemArr['homeItemMode_2']		= '显示';
			$itemArr['homeItemMode_3']		= '关闭';
			$eventStr = '
				<label><input type="checkbox" name="event[]" value="|noTop|" '. Is::InstrChecked($TS_event,'|noTop|') .'/>关闭自带回顶部箭头图标</label>&ensp;&ensp;
				<label><input type="checkbox" name="event[]" value="|noReadSiteInfo|" '. Is::InstrChecked($TS_event,'|noReadSiteInfo|') .'/>关闭【站点信息】</label>（
				<label><input type="checkbox" name="event[]" value="|noReadNumCount|" '. Is::InstrChecked($TS_event,'|noReadNumCount|') .'/>隐藏[总阅读量]</label>&ensp;&ensp;
				<label><input type="checkbox" name="event[]" value="|noInfoCount|" '. Is::InstrChecked($TS_event,'|noInfoCount|') .'/>隐藏[文章总数]</label>&ensp;&ensp;
				<label><input type="checkbox" name="event[]" value="|noReplyCount|" '. Is::InstrChecked($TS_event,'|noReplyCount|') .'/>隐藏[评论总数]</label>&ensp;&ensp;
				<label><input type="checkbox" name="event[]" value="|noMessageCount|" '. Is::InstrChecked($TS_event,'|noMessageCount|') .'/>隐藏[留言总数]</label>）
				';
			break;
	
		case 'def_dayNight/':	// 使用 白天黑夜模板
			$eventStr = '
				<label><input type="checkbox" name="event[]" value="|noLifeTime|" '. Is::InstrChecked($TS_event,'|noLifeTime|') .'/>关闭首页【时光匆匆】栏</label>&ensp;&ensp;
				<label><input type="checkbox" name="event[]" value="|noNight|" '. Is::InstrChecked($TS_event,'|noNight|') .'/>关闭夜晚月亮图标</label>&ensp;&ensp;
				';
			break;
	
	}

	$wapNoteArr = array('isMessage'=>'', 'messageName'=>'', 'messageMode'=>'', 'messageNum'=>'', 'messageSecond'=>'', 'messageAudit'=>'', 'messageMaxLen'=>'', 'messageAdminName'=>'', 'messageRndMd5'=>'', 'messageEvent'=>'', 'messageWebKey'=>'', 'messageWebDesc'=>'', 'messageCloseNote'=>'', 'messageBadWord'=>'');
	if (AppWap::Jud()){
		$wapArr = Cache::PhpFile('wap');
		$wapNoteArr['isMessage']		= Adm::WapValInfo(Adm::ValCN('isMessage', $wapArr['WAP_isMessage']));
		$wapNoteArr['messageName']		= Adm::WapValInfo($wapArr['WAP_messageName']);
		$wapNoteArr['messageMode']		= Adm::WapValInfo(Adm::ValCN('messageMode', $wapArr['WAP_messageMode']));
		$wapNoteArr['messageNum']		= Adm::WapValInfo($wapArr['WAP_messageNum']);
		$wapNoteArr['messageSecond']	= Adm::WapValInfo($wapArr['WAP_messageSecond'] .' 秒');
		$wapNoteArr['messageAudit']		= Adm::WapValInfo(Adm::ValCN('messageAudit', $wapArr['WAP_messageAudit']));
		$wapNoteArr['messageMaxLen']	= Adm::WapValInfo($wapArr['WAP_messageMaxLen']);
		$wapNoteArr['messageAdminName'] = Adm::WapValInfo($wapArr['WAP_messageAdminName']);
		$wapNoteArr['messageRndMd5']	= Adm::WapValInfo(Adm::ValCN('messageRndMd5', $wapArr['WAP_messageRndMd5']));
		$wapNoteArr['messageEvent']		= Adm::WapValInfo(Adm::ValCN('messageEvent', $wapArr['WAP_messageEvent']));
		if (strlen($wapArr['WAP_messageWebKey']) > 0){
			$wapNoteArr['messageWebKey'] = Adm::WapValInfo($wapArr['WAP_messageWebKey'], '手机版：', '');
		}
		if (strlen($wapArr['WAP_messageWebDesc']) > 0){
			$wapNoteArr['messageWebDesc'] = Adm::WapValInfo($wapArr['WAP_messageWebDesc'], '手机版：', '');
		}
		if (strlen($wapArr['WAP_messageCloseNote']) > 0){
			$wapNoteArr['messageCloseNote'] = Adm::WapValInfo($wapArr['WAP_messageCloseNote'], '手机版：', '');
		}
		if (strlen($wapArr['WAP_messageBadWord']) > 0){
			$wapNoteArr['messageBadWord'] = Adm::WapValInfo($wapArr['WAP_messageBadWord'], '手机版：', '');
		}
	}

	$cspArr = array();
	$cspArr[] = array('name' => 'default',	'title' => '全局默认值(default-src)',	'alt' => '针对所有类型（js/image/css/web font/ajax/iframe/多媒体等）资源的默认加载策略，某类型资源如果没有单独定义策略，就使用默认。');
	$cspArr[] = array('name' => 'script',	'title' => '外部脚本(script-src)',		'alt' => '针对JavaScript的加载策略');
	$cspArr[] = array('name' => 'style',	'title' => '样式表(style-src)',			'alt' => '针对CSS样式的加载策略');
	$cspArr[] = array('name' => 'img',		'title' => '图像(img-src)',				'alt' => '针对图片的加载策略');
	$cspArr[] = array('name' => 'media',	'title' => '媒体[音频视频](media-src)',	'alt' => '针对音频和视频的加载策略');
	$cspArr[] = array('name' => 'frame',	'title' => '框架(frame-src)',			'alt' => '针对iframe的加载策略');
	$cspArr[] = array('name' => 'font',		'title' => '字体(font-src)',			'alt' => '针对Web Font的加载策略');
	$cspArr[] = array('name' => 'object',	'title' => '对象/插件(object-src)',		'alt' => '');
	$cspArr[] = array('name' => 'child',	'title' => '子窗口源(child-src)',		'alt' => '限制子窗口的源(iframe、弹窗等),取代frame-src（CSP2），主要防御 frame、iframe');

	/*
	$cspArr[] = array('name' => 'ancestors','title' => '调用资源(frame-ancestors)',	'alt' => '限制了当前页面可以被哪些页面以iframe,frame,object,embed,applet等方式加载（CSP2）');
	$cspArr[] = array('name' => 'connect',	'title' => 'HTTP连接(connect-src)',		'alt' => '通过 XHR、WebSockets、EventSource等');
	$cspArr[] = array('name' => 'connect',	'title' => '连接(connect-src)',			'alt' => '针对Ajax、WebSocket等请求的加载策略。不允许的情况下，浏览器会模拟一个状态为400的响应');
	$cspArr[] = array('name' => 'worker',	'title' => 'worker脚本(worker-src)',	'alt' => '');
	$cspArr[] = array('name' => 'manifest',	'title' => 'manifest文件(manifest-src)','alt' => '');
	*/
	$cspListStr = '';
	foreach ($cspArr as $val){
		$cspVal = Str::GetMark($TS_metaTag, $val['name'] .'-src ', ';');
		$cspListStr .= '
			<tr>
				<td align="right">'. $val['title'] .'：</td>
				<td>
					<input type="text" id="csp_'. $val['name'] .'" name="csp_'. $val['name'] .'" style="width:310px;" value="'. $cspVal .'" onblur="CheckMetaCSP()" />
					<select id="cspSel_'. $val['name'] .'" onchange="InputToText(\'csp_'. $val['name'] .'\',this.value);CheckMetaCSP();">
						<option value="">预设值选择</option>
						<option value="*">允许任何内容</option>
						<option value="\'none\'">禁止任何内容</option>
						<option value="\'self\'">仅限当前域名</option>
						<option value="\'self\' data:">当前域名+data:数据流</option>
					</select>
					'. (strlen($val['alt']) > 0 ? ''. $skin->TishiBox($val['alt']) .'' : '') .'
				</td>
			</tr>
			';
	}
	
	echo('
	<form id="dealForm" name="dealForm" method="post" action="tplSys_deal.php?mudi=deal" onsubmit="return CheckForm()">
	<input type="hidden" id="dataType" name="dataType" value="'. $dataType .'" />
	<input type="hidden" id="dataTypeCN" name="dataTypeCN" value="'. $dataTypeCN .'" />
	<script language="javascript" type="text/javascript">document.write(\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>

	
	<div class="tabMenu">
	<ul>
		<li rel="tabBase" class="selected">基本信息</li>
		<li rel="tabTop">页头</li>
		<li rel="tabBottm">页尾</li>
		<li rel="tabHome">首页</li>
		<li rel="tabList">列表页</li>
		<li rel="tabDet">内容页</li>
		<li rel="tabMessage">评论/留言</li>
		<li rel="tabSeo">网页标题SEO</li>
		<li rel="tabQiye">企业站专属</li>
		<li id="buyBox" rel="tabBuy" style="display:;">商业版专属'. Skin::PluSign('商业版基础包','bottom') .'</li>
	</ul>
	</div>

	<div class="tabMenuArea">
		<table id="tabBase" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr><td colspan="2" style="color:red;padding-bottom:10px;">提醒：所有参数设置项仅对默认模板有效（除企业站专属菜单），其他模板由于结构不同，部分选项无效或位置不同。</td></tr>
		<tr>
			<td align="right">模板皮肤：</td>
			<td>
				<select id="skinName" name="skinName">
					<option value="default" '. Is::Selected($TS_skinName,'default') .'>红色(默认)</option>
					<option value="def_blue" '. Is::Selected($TS_skinName,'def_blue') .'>蓝色</option>
					<option value="def_pink" '. Is::Selected($TS_skinName,'def_pink') .'>粉色</option>
					<option value="def_purple" '. Is::Selected($TS_skinName,'def_purple') .'>紫色</option>
					<option value="def_green" '. Is::Selected($TS_skinName,'def_green') .'>绿色</option>
					<option value="def_yellow" '. Is::Selected($TS_skinName,'def_yellow') .'>黄色</option>
					<option value="def_black" '. Is::Selected($TS_skinName,'def_black') .'>黑色</option>
					<option value="user_inkWash" '. Is::Selected($TS_skinName,'user_inkWash') .'>水墨风</option>
				</select>
				&ensp;<span class="font2_2">（仅对默认模板有效）</span>
			</td>
		</tr>
		<!-- 废弃<tr>
			<td align="right">蒙层皮肤：</td>
			<td>
				<select id="skinPopup" name="skinPopup">
					<option value="red" '. Is::Selected($TS_skinPopup,'red') .'>红色</option>
					<option value="blue" '. Is::Selected($TS_skinPopup,'blue') .'>蓝色</option>
					<option value="pink" '. Is::Selected($TS_skinPopup,'pink') .'>粉色</option>
					<option value="purple" '. Is::Selected($TS_skinPopup,'purple') .'>紫色</option>
					<option value="green" '. Is::Selected($TS_skinPopup,'green') .'>绿色</option>
					<option value="yellow" '. Is::Selected($TS_skinPopup,'yellow') .'>黄色</option>
					<option value="black" '. Is::Selected($TS_skinPopup,'black') .'>黑色</option>
				</select>
			</td>
		</tr> -->
		<tr>
			<td align="right" class="font1_2">几天内日期加红：</td>
			<td><input type="text" id="redTimeDay" name="redTimeDay" size="50" style="width:50px;" value="'. $TS_redTimeDay .'" /> 天</td>
		</tr>
		<tr>
			<td align="right" class="font1_2">网站地图html文章数：</td>
			<td><input type="text" id="siteMapInfoNum" name="siteMapInfoNum" size="50" style="width:50px;" value="'. $TS_siteMapInfoNum .'" /></td>
		</tr>
		<tr>
			<td align="right">排行版显示：</td>
			<td>
				<label><input type="radio" name="rankUserMode" value="0" '. Is::Checked($TS_rankUserMode,0) .' />用户名</label>&ensp;&ensp;
				<label><input type="radio" name="rankUserMode" value="1" '. Is::Checked($TS_rankUserMode,1) .' />用户名部分带*</label>&ensp;&ensp;
				<label><input type="radio" name="rankUserMode" value="2" '. Is::Checked($TS_rankUserMode,2) .' />昵称（请确保所有用户都有昵称）</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right">广告调用方式：</td>
			<td>
				<select id="isJsAd" name="isJsAd">
					<option value="1" '. Is::Selected($TS_isJsAd,1) .'>JS调用（广告变动后无需重新生成静态页，但容易被手机浏览器拦截过滤）</option>
					<option value="0" '. Is::Selected($TS_isJsAd,0) .'>直接写在页面上（如有用纯静态，广告变动后需要重新生成静态页）</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">外部网址超链接：</td>
			<td>
				<select id="isOutUrl" name="isOutUrl">
					<option value="0" '. Is::Selected($TS_isOutUrl,0) .'>无</option>
					<option value="1" '. Is::Selected($TS_isOutUrl,1) .'>经过【外部网址温馨提醒】页跳转</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">外部网址白名单：</td>
			<td>
				<textarea id="outUrlList" name="outUrlList" style="width:510px; height:120px;">'. $TS_outUrlList .'</textarea>
				&ensp;<span class="font2_2">（一行一个域名）</span>
			</td>
		</tr>
		<!-- <tr>
			<td align="right">前台各板块说明：</td>
			<td>
				<select id="isFuncDesc" name="isFuncDesc">
					<option value="0" '. Is::Selected($TS_isFuncDesc,0) .'>关闭</option>
					<option value="1" '. Is::Selected($TS_isFuncDesc,1) .'>开启（各版块内容被功能说明代替）</option>
				</select>
			</td>
		</tr> -->
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">PC端附加全站CSS样式：</td>
			<td>
				<textarea id="siteCss" name="siteCss" style="width:510px; height:120px;">'. $TS_siteCss .'</textarea>
				&ensp;<span class="font2_2">（没有请留空，不要乱填）</span>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">其他附加项：</td>
			<td style="line-height:1.6;">
				'. $eventStr .'
			</td>
		</tr>

		'. Skin::ItemTrTop('meta标签','设置区域') .'
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">内容安全策略快捷设置：</td>
			<td>
				<table cellpadding="0" cellspacing="0">
				<tr>
					<td align="right" style="color:red;">快捷选择：</td>
					<td>
						<select id="cspPlan" style="width:310px;" onchange="PlanMetaCSP();CheckMetaCSP();">
							<option value=""></option>
							<option value="safe">安全设置推荐</option>
							<option value="self">更严格，仅限加载当前域名资源（第三方脚本、统计代码等都会失效）</option>
						</select>
					</td>
				</tr>
				'. $cspListStr .'
				<tr>
					<td align="right" style="color:red;"><b>该功能说明网址：</b></td>
					<td><a href="http://otcms.com/news/8498.html" target="_blank" class="font1_2">http://otcms.com/news/8498.html</a></td>
				</tr>
				</table>
				<div id="metaCSPdiv" style="padding:5px 0;color:blue;"></div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">PC端meta标签区域：</td>
			<td>
				<textarea id="metaTag" name="metaTag" style="width:510px; height:180px;">'. $TS_metaTag .'</textarea>
				&ensp;<span class="font2_2">（没有请留空，不要乱填）</span>
			</td>
		</tr>
		'. Skin::ItemTrBottom() .'
		</table>

		<table id="tabTop" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的页头，请到【移动端管理→WAP手机版】-[页头]设置）</b>') .'</td></tr>
		<tr>
			<td align="right">页头logo模式：</td>
			<td>
				<label><input type="radio" id="topLogoMode1" name="topLogoMode" value="1" '. Is::Checked($TS_topLogoMode,1) .' onclick=\'$id("logoW").value="960";CheckTopLogoMode();\' />全栏banner</label>&ensp;&ensp;
				<label><input type="radio" id="topLogoMode2" name="topLogoMode" value="2" '. Is::Checked($TS_topLogoMode,2) .' onclick=\'$id("logoW").value="256";CheckTopLogoMode();\' />logo+1广告位(编号21)</label>&ensp;&ensp;
				<label><input type="radio" id="topLogoMode4" name="topLogoMode" value="4" '. Is::Checked($TS_topLogoMode,4) .' onclick="CheckTopLogoMode();" />全栏广告位(编号23)</label>
			</td>
		</tr>
		<tr id="logoExtBox" style="display:none;">
			<td align="right" class="font1_2d">flash型logo：</td>
			<td>
				<label for="logoExt"><input type="checkbox" id="logoExt" name="logoExt" value="1" '. Is::Checked($TS_logoExt,1) .' onclick="CheckFlashLogo()" />开启</label>&ensp;&ensp;&ensp;&ensp;
				<span id="flashLogoBox" style="display:none;">
					宽：<input type="text" id="logoW" name="logoW" size="50" style="width:50px;" value="'. $TS_logoW .'" />

					&ensp;&ensp;&ensp;&ensp;
					高：<input type="text" id="logoH" name="logoH" size="50" style="width:50px;" value="'. $TS_logoH .'" />
				</span>
			</td>
		</tr>
		<tr id="logoBox" style="display:none;">
			<td align="right" class="font1_2d"><span id="logoFontSpan1">图片</span>型logo(≤宽308px)：</td>
			<td>
				<input type="text" id="logo" name="logo" size="50" style="width:260px;" value="'. $TS_logo .'" />
				<input type="button" id="logoFontBtn1" onclick=\'OT_OpenUpImg("input","logo","images","&isWatermark=false")\' value="上传图片" />
			</td>
		</tr>
		<tr id="fullLogoBox" style="display:none;">
			<td align="right" class="font1_2d"><span id="logoFontSpan2">图片</span>型logo(宽1254px)：</td>
			<td>
				<input type="text" id="fullLogo" name="fullLogo" size="50" style="width:260px;" value="'. $TS_fullLogo .'" />
				<input type="button" id="logoFontBtn2" onclick=\'OT_OpenUpImg("input","fullLogo","images","&isWatermark=false")\' value="上传图片" />
			</td>
		</tr>
		'. AppRss::TplSys($TS_isRss) .'
		'. AppJieri::TplSys($TS_isJieri) .'
		<tr>
			<td align="right">导航条类型：</td>
			<td>
				<label><input type="radio" id="navWidthMode0" name="navWidthMode" value="0" '. Is::Checked($TS_navWidthMode,0) .' onclick="CheckNavWidthMode()" />宽屏</label>&ensp;&ensp;
				<label><input type="radio" id="navWidthMode1" name="navWidthMode" value="1" '. Is::Checked($TS_navWidthMode,1) .' onclick="CheckNavWidthMode()" />窄屏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="jieriBgBox" style="display:none;">
		<tr>
			<td align="right">头背景：</td>
			<td>
				<select id="jieriImg" name="jieriImg">
					<option value="">无</option>
					<option value="yuandan.jpg" '. Is::Selected($TS_jieriImg,'yuandan.jpg') .'>元旦 （高度建议：177px）</option>
					<option value="chunjie.jpg" '. Is::Selected($TS_jieriImg,'chunjie.jpg') .'>春节 （高度建议：177px）</option>
					<option value="christmas.jpg" '. Is::Selected($TS_jieriImg,'christmas.jpg') .'>圣诞节 （高度建议：177px）</option>
					<option value="christmas2.jpg" '. Is::Selected($TS_jieriImg,'christmas2.jpg') .'>圣诞节2 （高度建议：177px）</option>
					<option value="diy.jpg" '. Is::Selected($TS_jieriImg,'diy.jpg') .'>自定义图 （图片路径 inc_img/jieriBg/diy.jpg）</option>
				</select>
				&ensp;&ensp;'. $skin->TishiBox('仅限默认模板，头背景文件存放在 inc_img/jieriBg/ 目录下') .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">头背景高度：</td>
			<td>
				<input type="text" id="jieriHeight" name="jieriHeight" size="50" style="width:50px;" value="'. $TS_jieriHeight .'" /> px
			</td>
		</tr>
		</tbody>
		<tr>
			<td align="right">导航模式：</td>
			<td>
				<select id="navMode" name="navMode" onchange="CheckNavMode();">
					<option value="11" '. Is::Selected($TS_navMode,11) .'>一级导航(不显示子菜单)</option>
					<option value="21" '. Is::Selected($TS_navMode,21) .'>二级导航[下拉二级菜单](默认)</option>
					<option value="26" '. Is::Selected($TS_navMode,26) .'>二级导航[无动画下拉二级菜单]</option>
					'. AppBase::TplSysOptionBox1($TS_navMode) .'
				</select>
			</td>
		</tr>
		<tr id="navMode0" style="display:none;">
			<td align="right" valign="top" style="padding-top:6px;">自定义导航代码：</td>
			<td>
				<textarea id="navCode" name="navCode" style="width:510px;height:120px;" onclick=\'LoadEditor("navCode",510,120,"|miniMenu|source|");\' title="点击开启编辑器模式">'. Str::MoreReplace($TS_navCode,'textarea') .'</textarea>
			</td>
		</tr>
		<tr id="navMode1">
			<td align="right">导航菜单数量：</td>
			<td>
				<select id="navNum" name="navNum" onchange="CheckNavNum();">
					<option value="3" '. Is::Selected($TS_navNum,3) .'>3</option>
					<option value="4" '. Is::Selected($TS_navNum,4) .'>4</option>
					<option value="5" '. Is::Selected($TS_navNum,5) .'>5</option>
					<option value="6" '. Is::Selected($TS_navNum,6) .'>6</option>
					<option value="7" '. Is::Selected($TS_navNum,7) .'>7</option>
					<option value="8" '. Is::Selected($TS_navNum,8) .'>8</option>
					<option value="9" '. Is::Selected($TS_navNum,9) .'>9</option>
					<option value="10" '. Is::Selected($TS_navNum,10) .'>10</option>
					<option value="11" '. Is::Selected($TS_navNum,11) .'>11</option>
					<option value="12" '. Is::Selected($TS_navNum,12) .'>12</option>
					<option value="13" '. Is::Selected($TS_navNum,13) .'>13</option>
					<option value="14" '. Is::Selected($TS_navNum,14) .'>14</option>
					<option value="0" '. Is::Selected($TS_navNum,0) .'>自适应宽</option>
				</select>
				<span id="navPaddBox" style="display:none;">&ensp;&ensp;主导航宽间距：<input type="text" id="navPadd" name="navPadd" size="50" style="width:50px;" value="'. $TS_navPadd .'" /> px&ensp;&ensp;下拉二级菜单宽度：<input type="text" id="navSubWidth" name="navSubWidth" size="50" style="width:50px;" value="'. $TS_navSubWidth .'" /> px</span>
			</td>
		</tr>
		</table>


		<table id="tabBottm" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的页尾，请到【移动端管理→WAP手机版】-[页尾]设置）</b>') .'</td></tr>
		<tr>
			<td align="right">TCP/IP备案号：</td>
			<td><input type="text" id="TCP" name="TCP" size="50" style="width:300px;" value="'. $TS_TCP .'" />&ensp;<span class="font2_2">如：闽ICP备12010380号</span></td>
		</tr>
		<tr>
			<td align="right">公安备案号：</td>
			<td><input type="text" id="beianName" name="beianName" size="50" style="width:300px;" value="'. $TS_beianName .'" />&ensp;<span class="font2_2">如：闽公网安备35010302000189号</span></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">公安备案号数字：</td>
			<td><input type="text" id="beianUrl" name="beianUrl" size="50" style="width:300px;" value="'. $TS_beianUrl .'" />&ensp;<span class="font2_2">如：35010302000189</span></td>
		</tr>
		<tr>
			<td align="right" valign="top">网站版权：</td>
			<td>
				<textarea id="copyright" name="copyright" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("copyright",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($TS_copyright,'textarea') .'</textarea>
				<input type="hidden" id="upImgStr" name="upImgStr" value="" />
				<div><input type="button" onclick=\'OT_OpenUpImg("editor","copyright","","")\' value="上传图片载入编辑器" /></div>
			</td>
		</tr>
		<tr>
			<td align="right">统计代码：</td>
			<td>
				<label><input type="radio" id="isStati1" name="isStati" value="1" '. Is::Checked($TS_isStati,1) .' onclick="CheckStati();" />启用</label>&ensp;&ensp;
				<label><input type="radio" id="isStati0" name="isStati" value="0" '. Is::Checked($TS_isStati,0) .' onclick="CheckStati();" />禁用</label>&ensp;&ensp;
			</td>
		</tr>
		<tr id="statiBox" style="display:none;">
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">统计代码内容：</td>
			<td><textarea id="statiCode" name="statiCode" style="width:510px; height:120px;">'. $TS_statiCode .'</textarea></td>
		</tr>
		</table>


		<table id="tabHome" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的首页，请到【移动端管理→WAP手机版】-[首页]设置）</b>') .'</td></tr>
		<tr>
			<td align="right">首页跳转网址：</td>
			<td align="left">
				<input type="text" id="homeJumpUrl" name="homeJumpUrl" size="50" style="width:510px;" value="'. $TS_homeJumpUrl .'" />
				<select onchange="$id(\'homeJumpUrl\').value = this.value; this.value = \'\';">
					<option value="" style="color:#ccc;">快捷可选项</option>
					<option value="wap/users/">会员中心</option>
				</select>
				<span class="font2_2">（如无请留空）</span>
			</td>
		</tr>
		<tr>
			<td align="right">滚动信息显示数量：</td>
			<td align="left"><input type="text" id="marInfoNum" name="marInfoNum" size="50" style="width:50px;" value="'. $TS_marInfoNum .'" /></td>
		</tr>

		'. Skin::ItemTrTop('首页','栏目') .'
		<tr>
			<td align="right">布局：</td>
			<td class="itemMode">
				<label><input type="radio" name="homeItemMode" value="2" '. Is::Checked($TS_homeItemMode,2) .'/>'. $itemArr['homeItemMode_2'] .'<span>'. ($itemArr['homeItemModeIsImg'] ? '<img src="temp/itemMode2.gif" style="display:none;" />' : '') .'</span></label>&ensp;&ensp;
				<label><input type="radio" name="homeItemMode" value="3" '. Is::Checked($TS_homeItemMode,3) .'/>'. $itemArr['homeItemMode_3'] .'<span>'. ($itemArr['homeItemModeIsImg'] ? '<img src="temp/itemMode3.gif" style="display:none;" />' : '') .'</span></label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td>
				<input type="text" id="homeItemName" name="homeItemName" value="'. $TS_homeItemName .'" style="width:110px;" />
				&ensp;<span style="color:red;">（默认模板无效，仅对部分模板有效）</span>
			</td>
		</tr>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('幻灯','片') .'
		<tr>
			<td align="right">款式：</td>
			<td class="flashTrun">
				<label><input type="radio" id="homeFlashMode5" name="homeFlashMode" value="5" '. Is::Checked($TS_homeFlashMode,5) .' onclick="CheckHomeFlashMode();" />开启<span><img src="temp/flashTrun5.gif" style="display:none;" /></span></label>&ensp;&ensp;
				<label><input type="radio" id="homeFlashMode0" name="homeFlashMode" value="0" '. Is::Checked($TS_homeFlashMode,0) .' onclick="CheckHomeFlashMode();" />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeFlashBox" style="display:none;">
		<tr id="flashThemeBox">
			<td align="right" class="font1_2d">标题：</td>
			<td class="flashTrun">
				<label><input type="radio" name="isHomeFlashTheme" value="1" '. Is::Checked($TS_isHomeFlashTheme,1) .'/>显示</label>&ensp;&ensp;
				<label><input type="radio" name="isHomeFlashTheme" value="0" '. Is::Checked($TS_isHomeFlashTheme,0) .'/>隐藏</label>&ensp;&ensp;
				&ensp;&ensp;'. $skin->TishiBox('仅对款式1、款式2、款式3有效') .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">最大显示数：</td>
			<td align="left">
				<input type="text" id="homeFlashNum" name="homeFlashNum" size="50" style="width:50px;" value="'. $TS_homeFlashNum .'" />
				&ensp;&ensp;'. $skin->TishiBox('最大显示数为15；0表示最大显示数') .'
			</td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('网站','公告') .'
		<tr>
			<td align="right">网站公告：</td>
			<td>
				<label><input type="radio" id="isHomeAnnoun1" name="isHomeAnnoun" value="1" '. Is::Checked($TS_isHomeAnnoun,1) .' onclick="CheckHomeAnnoun();" />显示默认位置</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeAnnoun2" name="isHomeAnnoun" value="2" '. Is::Checked($TS_isHomeAnnoun,2) .' onclick="CheckHomeAnnoun();" />显示右侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeAnnoun0" name="isHomeAnnoun" value="0" '. Is::Checked($TS_isHomeAnnoun,0) .' onclick="CheckHomeAnnoun();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeAnnounBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td>
				<input type="text" id="homeAnnounName" name="homeAnnounName" size="50" style="width:110px;" value="'. $TS_homeAnnounName .'" />
				&ensp;&ensp;<span class="font2_2">（通用公告名称设置在【常规设置】-【网站参数设置】[基本信息]）</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示数量：</td>
			<td align="left"><input type="text" id="homeAnnounNum" name="homeAnnounNum" size="50" style="width:50px;" value="'. $TS_homeAnnounNum .'" /></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('最新','消息') .'
		<tr>
			<td align="right">最新消息：</td>
			<td>
				<label><input type="radio" id="isHomeNew1" name="isHomeNew" value="1" '. Is::Checked($TS_isHomeNew,1) .' onclick="CheckHomeNew();" />显示</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeNew0" name="isHomeNew" value="0" '. Is::Checked($TS_isHomeNew,0) .' onclick="CheckHomeNew();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeNewBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">栏目分类：</td>
			<td>
				<label><input type="radio" name="homeNewIsType" value="1" '. Is::Checked($TS_homeNewIsType,1) .'/>显示</label>&ensp;&ensp;
				<label><input type="radio" name="homeNewIsType" value="0" '. Is::Checked($TS_homeNewIsType,0) .'/>隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">时间：</td>
			<td>
				<label><input type="radio" name="homeNewIsDate" value="1" '. Is::Checked($TS_homeNewIsDate,1) .'/>显示</label>&ensp;&ensp;
				<label><input type="radio" name="homeNewIsDate" value="0" '. Is::Checked($TS_homeNewIsDate,0) .'/>隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tr style="display:none;">
			<td align="right" class="font1_2d">置顶：</td>
			<td>
				<label><input type="radio" name="homeNewTopMode" value="1" '. Is::Checked($TS_homeNewTopMode,1) .'/>开启</label>&ensp;&ensp;
				<!-- <label><input type="radio" name="homeNewTopMode" value="2" '. Is::Checked($TS_homeNewTopMode,2) .'/>缩略图+标题+摘要</label>&ensp;&ensp; -->
				<label><input type="radio" name="homeNewTopMode" value="0" '. Is::Checked($TS_homeNewTopMode,0) .'/>关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td>
				<input type="text" id="homeNewName" name="homeNewName" value="'. $TS_homeNewName .'" style="width:110px;" />
				&ensp;<span style="color:red;">（默认模板无效，仅对部分模板有效）</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">置顶文章数：</td>
			<td align="left"><input type="text" id="homeNewTopNum" name="homeNewTopNum" size="50" style="width:50px;" value="'. $TS_homeNewTopNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示数量：</td>
			<td align="left"><input type="text" id="homeNewNum" name="homeNewNum" size="50" style="width:50px;" value="'. $TS_homeNewNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">框架高度：</td>
			<td align="left"><input type="text" id="homeNewBoxH" name="homeNewBoxH" size="50" style="width:50px;" value="'. $TS_homeNewBoxH .'" />&ensp;px&ensp;&ensp;'. $skin->TishiBox('为0则表示系统自适应高度') .'</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">最大条数：</td>
			<td align="left">
				<input type="text" id="homeNewMoreNum" name="homeNewMoreNum" size="50" style="width:50px;" value="'. $TS_homeNewMoreNum .'" />
				&ensp;'. $skin->TishiBox('为0则表示显示全部') .'
			</td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('精彩','推荐') .'
		<tr>
			<td align="right">精彩推荐：</td>
			<td>
				<label><input type="radio" id="isHomeRecom1" name="isHomeRecom" value="1" '. Is::Checked($TS_isHomeRecom,1) .' onclick="CheckHomeRecom();" />显示默认位置</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeRecom2" name="isHomeRecom" value="2" '. Is::Checked($TS_isHomeRecom,2) .' onclick="CheckHomeRecom();" />显示左侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeRecom0" name="isHomeRecom" value="0" '. Is::Checked($TS_isHomeRecom,0) .' onclick="CheckHomeRecom();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeRecomBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td>
				<input type="text" id="homeRecomName" name="homeRecomName" value="'. $TS_homeRecomName .'" style="width:110px;" />
				&ensp;<span style="color:red;">（默认模板无效，仅对部分模板有效）</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">图文文章数：</td>
			<td align="left"><input type="text" id="homeRecomImgNum" name="homeRecomImgNum" size="50" style="width:50px;" value="'. $TS_homeRecomImgNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">文字文章数：</td>
			<td align="left"><input type="text" id="homeRecomNum" name="homeRecomNum" size="50" style="width:50px;" value="'. $TS_homeRecomNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">框架高度：</td>
			<td align="left"><input type="text" id="homeRecomBoxH" name="homeRecomBoxH" size="50" style="width:50px;" value="'. $TS_homeRecomBoxH .'" />&ensp;px&ensp;'. $skin->TishiBox('为0则表示系统自适应高度') .'</td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('滚动','图片') .'
		<tr>
			<td align="right">滚动图片：</td>
			<td>
				<label><input type="radio" id="isHomeMarImg1" name="isHomeMarImg" value="1" '. Is::Checked($TS_isHomeMarImg,1) .' onclick="CheckHomeMarImg();" />显示</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeMarImg0" name="isHomeMarImg" value="0" '. Is::Checked($TS_isHomeMarImg,0) .' onclick="CheckHomeMarImg();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeMarImgBox" style="display:none;">
		<!-- <tr>
			<td align="right" class="font1_2d">模式：</td>
			<td>
				<label><input type="radio" name="homeMarImgMode" value="1" '. Is::Checked($TS_homeMarImgMode,1) .'/>自动左滚</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">宽：</td>
			<td><input type="text" id="homeMarImgW" name="homeMarImgW" size="50" style="width:50px;" value="'. $TS_homeMarImgW .'" /> px</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">高：</td>
			<td><input type="text" id="homeMarImgH" name="homeMarImgH" size="50" style="width:50px;" value="'. $TS_homeMarImgH .'" /> px</td>
		</tr> -->
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td>
				<input type="text" id="homeMarImgName" name="homeMarImgName" value="'. $TS_homeMarImgName .'" style="width:110px;" />
				&ensp;<span style="color:red;">（默认模板无效，仅对部分模板有效）</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">最多显示数量：</td>
			<td align="left"><input type="text" id="homeMarImgNum" name="homeMarImgNum" size="50" style="width:50px;" value="'. $TS_homeMarImgNum .'" /></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('热门','文章') .'
		<tr>
			<td align="right">热门文章：</td>
			<td>
				<label><input type="radio" id="isHomeHot1" name="isHomeHot" value="1" '. Is::Checked($TS_isHomeHot,1) .' onclick="CheckHomeHot();" />显示默认位置</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeHot2" name="isHomeHot" value="2" '. Is::Checked($TS_isHomeHot,2) .' onclick="CheckHomeHot();" />显示左侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeHot3" name="isHomeHot" value="3" '. Is::Checked($TS_isHomeHot,3) .' onclick="CheckHomeHot();" />显示右侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeHot0" name="isHomeHot" value="0" '. Is::Checked($TS_isHomeHot,0) .' onclick="CheckHomeHot();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeHotBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td><input type="text" id="homeHotName" name="homeHotName" size="50" style="width:110px;" value="'. $TS_homeHotName .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">排序模式：</td>
			<td>
				<select id="homeHotSort" name="homeHotSort">
					<option value="readNum" '. Is::Selected($TS_homeHotSort,'readNum') .'>阅读量降序</option>
					<option value="replyNum" '. Is::Selected($TS_homeHotSort,'replyNum') .'>评论数降序</option>
					<option value="time" '. Is::Selected($TS_homeHotSort,'time') .'>发布时间降序</option>
					<option value="revTime" '. Is::Selected($TS_homeHotSort,'revTime') .'>修改时间降序</option>
					<option value="isRecom DESC,IF_time" '. Is::Selected($TS_homeHotSort,'isRecom DESC,IF_time') .'>推荐降序</option>
					<option value="isTop DESC,IF_time" '. Is::Selected($TS_homeHotSort,'isTop DESC,IF_time') .'>置顶降序</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">日期：</td>
			<td align="left">
				<label><input type="radio" name="homeHotIsDate" value="true" '. Is::Checked($TS_homeHotIsDate,'true') .' />显示</label>&ensp;&ensp;
				<label><input type="radio" name="homeHotIsDate" value="false" '. Is::Checked($TS_homeHotIsDate,'false') .' />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">图文文章数：</td>
			<td align="left"><input type="text" id="homeHotImgNum" name="homeHotImgNum" size="50" style="width:50px;" value="'. $TS_homeHotImgNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">文字文章数：</td>
			<td align="left"><input type="text" id="homeHotNum" name="homeHotNum" size="50" style="width:50px;" value="'. $TS_homeHotNum .'" /></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('最新','留言') .'
		<tr>
			<td align="right">最新留言：</td>
			<td>
				<label><input type="radio" id="isHomeMessage1" name="isHomeMessage" value="1" '. Is::Checked($TS_isHomeMessage,1) .' onclick="CheckHomeMessage();" />显示默认位置</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeMessage2" name="isHomeMessage" value="2" '. Is::Checked($TS_isHomeMessage,2) .' onclick="CheckHomeMessage();" />显示左侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeMessage3" name="isHomeMessage" value="3" '. Is::Checked($TS_isHomeMessage,3) .' onclick="CheckHomeMessage();" />显示右侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeMessage0" name="isHomeMessage" value="0" '. Is::Checked($TS_isHomeMessage,0) .' onclick="CheckHomeMessage();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeMessageBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td><input type="text" id="homeMessageName" name="homeMessageName" size="50" style="width:110px;" value="'. $TS_homeMessageName .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">框架高度：</td>
			<td>
				<input type="text" id="homeMessageH" name="homeMessageH" size="50" style="width:50px;" value="'. $TS_homeMessageH .'" />px
				&ensp;<label><input type="checkbox" name="homeMessageHmode" value="auto" '. Is::Checked($TS_homeMessageHmode,'auto') .' />超过出现滚动条</label>&ensp;&ensp;
				&ensp;<span class="font3_2">(0表示高度自适应)</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示数量：</td>
			<td align="left"><input type="text" id="homeMessageNum" name="homeMessageNum" size="50" style="width:50px;" value="'. $TS_homeMessageNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示长度：</td>
			<td align="left"><input type="text" id="homeMessageLen" name="homeMessageLen" size="50" style="width:50px;" value="'. $TS_homeMessageLen .'" /> 字符</td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('最新','评论') .'
		<tr>
			<td align="right">最新评论：</td>
			<td>
				<label><input type="radio" id="isHomeReply1" name="isHomeReply" value="1" '. Is::Checked($TS_isHomeReply,1) .' onclick="CheckHomeReply();" />显示默认位置</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeReply2" name="isHomeReply" value="2" '. Is::Checked($TS_isHomeReply,2) .' onclick="CheckHomeReply();" />显示左侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeReply3" name="isHomeReply" value="3" '. Is::Checked($TS_isHomeReply,3) .' onclick="CheckHomeReply();" />显示右侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeReply0" name="isHomeReply" value="0" '. Is::Checked($TS_isHomeReply,0) .' onclick="CheckHomeReply();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeReplyBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td><input type="text" id="homeReplyName" name="homeReplyName" size="50" style="width:110px;" value="'. $TS_homeReplyName .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">框架高度：</td>
			<td>
				<input type="text" id="homeReplyH" name="homeReplyH" size="50" style="width:50px;" value="'. $TS_homeReplyH .'" />px
				&ensp;<label><input type="checkbox" name="homeReplyHmode" value="auto" '. Is::Checked($TS_homeReplyHmode,'auto') .' />超过出现滚动条</label>&ensp;&ensp;
				&ensp;<span class="font3_2">(0表示高度自适应)</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示数量：</td>
			<td align="left"><input type="text" id="homeReplyNum" name="homeReplyNum" size="50" style="width:50px;" value="'. $TS_homeReplyNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示长度：</td>
			<td align="left"><input type="text" id="homeReplyLen" name="homeReplyLen" size="50" style="width:50px;" value="'. $TS_homeReplyLen .'" /> 字符</td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('最新会','员排名') .'
		<tr>
			<td align="right">最新会员排名：</td>
			<td>
				<label><input type="radio" id="isHomeNewUsers1" name="isHomeNewUsers" value="1" '. Is::Checked($TS_isHomeNewUsers,1) .' onclick="CheckHomeNewUsers();" />显示默认位置</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeNewUsers2" name="isHomeNewUsers" value="2" '. Is::Checked($TS_isHomeNewUsers,2) .' onclick="CheckHomeNewUsers();" />显示左侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeNewUsers3" name="isHomeNewUsers" value="3" '. Is::Checked($TS_isHomeNewUsers,3) .' onclick="CheckHomeNewUsers();" />显示右侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeNewUsers0" name="isHomeNewUsers" value="0" '. Is::Checked($TS_isHomeNewUsers,0) .' onclick="CheckHomeNewUsers();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeNewUsersBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td><input type="text" id="homeNewUsersName" name="homeNewUsersName" size="50" style="width:110px;" value="'. $TS_homeNewUsersName .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示数量：</td>
			<td align="left"><input type="text" id="homeNewUsersNum" name="homeNewUsersNum" size="50" style="width:50px;" value="'. $TS_homeNewUsersNum .'" /></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('会员积','分排名') .'
		<tr>
			<td align="right">会员积分排名：</td>
			<td>
				<label><input type="radio" id="isHomeRankUsers1" name="isHomeRankUsers" value="1" '. Is::Checked($TS_isHomeRankUsers,1) .' onclick="CheckHomeRankUsers();" />显示默认位置</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeRankUsers2" name="isHomeRankUsers" value="2" '. Is::Checked($TS_isHomeRankUsers,2) .' onclick="CheckHomeRankUsers();" />显示左侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeRankUsers3" name="isHomeRankUsers" value="3" '. Is::Checked($TS_isHomeRankUsers,3) .' onclick="CheckHomeRankUsers();" />显示右侧</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeRankUsers0" name="isHomeRankUsers" value="0" '. Is::Checked($TS_isHomeRankUsers,0) .' onclick="CheckHomeRankUsers();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeRankUsersBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td><input type="text" id="homeRankUsersName" name="homeRankUsersName" size="50" style="width:110px;" value="'. $TS_homeRankUsersName .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">依据：</td>
			<td align="left">
				<label><input type="radio" name="homeRankUsersType" value="score1" '. Is::Checked($TS_homeRankUsersType,'score1') .' />积分1</label>&ensp;&ensp;
				<label><input type="radio" name="homeRankUsersType" value="score2" '. Is::Checked($TS_homeRankUsersType,'score2') .' />积分2</label>&ensp;&ensp;
				<label><input type="radio" name="homeRankUsersType" value="score3" '. Is::Checked($TS_homeRankUsersType,'score3') .' />积分3</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示数量：</td>
			<td align="left"><input type="text" id="homeRankUsersNum" name="homeRankUsersNum" size="50" style="width:50px;" value="'. $TS_homeRankUsersNum .'" /></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('会员登','录窗口') .'
		<tr>
			<td align="right">会员登录窗口：</td>
			<td>
				<label><input type="radio" id="isHomeLogin1" name="isHomeLogin" value="1" '. Is::Checked($TS_isHomeLogin,1) .' onclick="CheckHomeLogin();" />显示</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeLogin0" name="isHomeLogin" value="0" '. Is::Checked($TS_isHomeLogin,0) .' onclick="CheckHomeLogin();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeLoginBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">窗口名称：</td>
			<td><input type="text" id="homeLoginName" name="homeLoginName" size="50" style="width:110px;" value="'. $TS_homeLoginName .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top">未登录自定义内容：</td>
			<td>
				<textarea id="homeLoginStr1" name="homeLoginStr1" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("homeLoginStr1",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($TS_homeLoginStr1,'textarea') .'</textarea>
				<span style="color:red;">&ensp;（留空显示系统自带内容）</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top">已登录自定义内容：</td>
			<td>
				<textarea id="homeLoginStr2" name="homeLoginStr2" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("homeLoginStr2",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($TS_homeLoginStr2,'textarea') .'</textarea>
				<span style="color:red;">&ensp;（留空显示系统自带内容）</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">框架高度：</td>
			<td align="left"><input type="text" id="homeLoginBoxH" name="homeLoginBoxH" size="50" style="width:50px;" value="'. $TS_homeLoginBoxH .'" />&ensp;px&ensp;&ensp;'. $skin->TishiBox('为0则表示系统自适应高度') .'</td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. AppQiandao::TplSys($TS_isHomeQiandao, $TS_homeQiandaoName, $TS_isQiandaoRank, $TS_qiandaoRankName, $TS_qiandaoRankType, $TS_qiandaoRankNum) .'
		'. AppBbs::TplSys($TS_isHomeBbs, $TS_homeBbsName, $TS_homeBbsH, $TS_homeBbsHmode, $TS_homeBbsNum, $TS_homeBbsLen) .'
		'. AppTag::TplSys($TS_isHomeTag, $TS_homeTagName, $TS_homeTagType, $TS_homeTagNum) .'
		</table>


		<table id="tabSeo" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;"></td>
			<td style="color:red;font-size:14px;padding:5px 0;">没特殊要求，这块SEO设置请不要动，设置不对会严重影响SEO，默认的就是官方觉得最适合的。</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">首页网页title：</td>
			<td>
				<input type="text" id="titleHome" name="titleHome" size="50" style="width:500px;" value="'. $TS_titleHome .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleHome").value="{%网站标题%}{%网站标题附加%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleHome","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleHome","{%网站标题附加%}")\'>{%网站标题附加%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">列表页网页title：</td>
			<td>
				<input type="text" id="titleList" name="titleList" size="50" style="width:500px;" value="'. $TS_titleList .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleList").value="{%栏目名称%}{%父栏目名称%}{%栏目名称附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%栏目名称%}")\'>{%栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%父栏目名称%}")\'>{%父栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%栏目名称附加%}")\'>{%栏目名称附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">内容页网页title：</td>
			<td>
				<input type="text" id="titleShow" name="titleShow" size="50" style="width:500px;" value="'. $TS_titleShow .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleShow").value="{%文章标题%}_{%栏目名称%}{%父栏目名称%}{%文章标题附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%栏目名称%}")\'>{%栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%父栏目名称%}")\'>{%父栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%文章标题%}")\'>{%文章标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%文章标题附加%}")\'>{%文章标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">单篇页网页title：</td>
			<td>
				<input type="text" id="titleWeb" name="titleWeb" size="50" style="width:500px;" value="'. $TS_titleWeb .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleWeb").value="{%标题%}_{%网站标题%}{%标题附加%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%标题%}")\'>{%标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%标题附加%}")\'>{%标题附加%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">搜索页网页title：</td>
			<td>
				<input type="text" id="titleSearch" name="titleSearch" size="50" style="width:500px;" value="'. $TS_titleSearch .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleSearch").value="搜索({%搜索类型%})：{%搜索词%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%搜索词%}")\'>{%搜索词%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%搜索类型%}")\'>{%搜索类型%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">标签页网页title：</td>
			<td>
				<input type="text" id="titleMark" name="titleMark" size="50" style="width:500px;" value="'. $TS_titleMark .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleMark").value="标签：{%标签%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%标签%}")\'>{%标签%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">专题页网页title：</td>
			<td>
				<input type="text" id="titleTopic" name="titleTopic" size="50" style="width:500px;" value="'. $TS_titleTopic .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleTopic").value="专题：{%专题%}{%专题附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%专题%}")\'>{%专题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%专题附加%}")\'>{%专题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		'. AppBbs::SystemBox2($TS_titleBbsList,$TS_titleBbsShow,$TS_titleBbsSearch) .'
		</table>
		');

		$aboutStr = $aboutMoreStr = $contactStr = $contactMoreStr = '<optgroup label="单篇页" style="font-weight:normal;"></optgroup>';
		$webexe=$DB->query("select IW_ID,IW_theme from ". OT_dbPref ."infoWeb where IW_type='newsWeb' and IW_mode='web' order by IW_rank ASC");
		if (! $row = $webexe->fetch()){
			$optionStr = '<option value="" style="color:#9d9d9d;">无记录（常规设置→单篇页管理 添加）</option>';
			$aboutStr .= $optionStr;
			$aboutMoreStr .= $optionStr;
			$contactStr .= $optionStr;
			$contactMoreStr .= $optionStr;
		}else{
			do {
				$aboutStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeAboutID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
				$aboutMoreStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeAboutMoreID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
				$contactStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeContactID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
				$contactMoreStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeContactMoreID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
			}while ($row = $webexe->fetch());
		}
		unset($webexe);

		$optionStr = '<optgroup label="底部栏目" style="font-weight:normal;"></optgroup>';
		$aboutStr .= $optionStr;
		$aboutMoreStr .= $optionStr;
		$contactStr .= $optionStr;
		$contactMoreStr .= $optionStr;

		$webexe=$DB->query("select IW_ID,IW_theme from ". OT_dbPref ."infoWeb where IW_type='bottom' and IW_mode='web' order by IW_rank ASC");
		if (! $row = $webexe->fetch()){
			$optionStr = '<option value="" style="color:#9d9d9d;">无记录（常规设置→底部栏目 添加）</option>';
			$aboutStr .= $optionStr;
			$aboutMoreStr .= $optionStr;
			$contactStr .= $optionStr;
			$contactMoreStr .= $optionStr;
		}else{
			do {
				$aboutStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeAboutID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
				$aboutMoreStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeAboutMoreID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
				$contactStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeContactID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
				$contactMoreStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$TS_homeContactMoreID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>';
			}while ($row = $webexe->fetch());
		}
		unset($webexe);

		$newsStr = '<option value="-1" '. Is::Selected($TS_homeNewsID,'-1') .'>0、'. $systemArr['SYS_announName'] .'</option>';
		$proStr = '<option value="-1" '. Is::Selected($TS_homeProID,'-1') .'>0、'. $systemArr['SYS_announName'] .'</option>';
		$typeNum = 0;
		$typeexe=$DB->query('select IT_ID,IT_theme from '. OT_dbPref .'infoType where IT_state=1 and IT_level=1 order by IT_rank ASC');
		while ($row = $typeexe->fetch()){
			$typeNum ++;
			$newsStr .= '<option value="'. $row['IT_ID'] .'" '. Is::Selected($TS_homeNewsID,$row['IT_ID']) .'>'. $typeNum .'、'. $row['IT_theme'] .'</option>';
			$proStr .= '<option value="'. $row['IT_ID'] .'" '. Is::Selected($TS_homeProID,$row['IT_ID']) .'>'. $typeNum .'、'. $row['IT_theme'] .'</option>';
			$type2exe=$DB->query('select IT_ID,IT_theme from '. OT_dbPref .'infoType where IT_state=1 and IT_level=2 and IT_fatID='. $row['IT_ID'] .' order by IT_rank ASC');
				while ($row2 = $type2exe->fetch()){
					$newsStr .= '<option value="'. $row2['IT_ID'] .'" '. Is::Selected($TS_homeNewsID,$row2['IT_ID']) .'>&ensp;&ensp;&ensp;┣&ensp;'. $row2['IT_theme'] .'</option>';
					$proStr .= '<option value="'. $row2['IT_ID'] .'" '. Is::Selected($TS_homeProID,$row2['IT_ID']) .'>&ensp;&ensp;&ensp;┣&ensp;'. $row2['IT_theme'] .'</option>';
				}
		}
		echo('
		<table id="tabQiye" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr><td colspan="2" style="color:red;padding-bottom:10px;">提醒：企业站专属菜单针对企业类模板首页信息模块读取选择，非企业站模板一般不会用到。</td></tr>
		<tr>
			<td align="right">首页公司简介：</td>
			<td>
				<select id="homeAboutID" name="homeAboutID">
					<option value=""></option>
					'. $aboutStr .'
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">首页公司简介[更多]：</td>
			<td>
				<select id="homeAboutMoreID" name="homeAboutMoreID">
					<option value=""></option>
					'. $aboutMoreStr .'
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">首页联系我们：</td>
			<td>
				<select id="homeContactID" name="homeContactID">
					<option value=""></option>
					'. $contactStr .'
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">首页联系我们[更多]：</td>
			<td>
				<select id="homeContactMoreID" name="homeContactMoreID">
					<option value=""></option>
					'. $contactMoreStr .'
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">首页新闻：</td>
			<td>
				<select id="homeNewsID" name="homeNewsID" style="width:180px;">
					<option value=""></option>
					'. $newsStr .'
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">首页新闻数量：</td>
			<td><input type="text" id="homeNewsNum" name="homeNewsNum" size="50" style="width:50px;" value="'. $TS_homeNewsNum .'" /></td>
		</tr>
		<tr>
			<td align="right">首页产品：</td>
			<td>
				<select id="homeProID" name="homeProID" style="width:180px;">
					<option value=""></option>
					'. $proStr .'
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">首页产品数量：</td>
			<td><input type="text" id="homeProNum" name="homeProNum" size="50" style="width:50px;" value="'. $TS_homeProNum .'" /></td>
		</tr>
		<!-- <tr>
			<td align="right">首页栏目：</td>
			<td>
			</td>
		</tr> -->
		</table>


		<table id="tabList" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的列表页/内容页，请到【移动端管理→WAP手机版】-[列表页]设置）</b>') .'</td></tr>
		<tr>
			<td align="right">错误页面跳转：</td>
			<td align="left">
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="" '. Is::Checked($TS_subWeb404,'') .' />首页</label>&ensp;&ensp;
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="404err.html" '. Is::Checked($TS_subWeb404,'404err.html') .' />404err.html</label>&ensp;&ensp;
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="404.php" '. Is::Checked($TS_subWeb404,'404.php') .' />404.php<span style="color:red;">(推荐)</span></label>&ensp;&ensp;
				<label><input type="radio" id="subWeb404Other" name="subWeb404" onclick="CheckSubWeb404()" value="-1" />其他页面</label><span id="subWeb404NewBox" style="display:none;"><input type="text" style="width:80px;" id="subWeb404New" name="subWeb404New" value="'. $TS_subWeb404 .'" /><span class="font2_2">(请确保前台目录下有该文件)</span></span>&ensp;&ensp;
				<span style="color:red;">（仅对动态路径有效，其他地方需要空间里或服务器设置）</span>
			</td>
		</tr>
		'. AppTag::TplSys2($TS_isListTag, $TS_listTagName, $TS_listTagType, $TS_listTagNum) .'

		'. Skin::ItemTrTop('最新消','息列表页') .'
		'. AdmArea::ListMode('显示模式','newListMode',$TS_newListMode) .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="homeNewListNum" name="homeNewListNum" size="50" style="width:50px;" value="'. $TS_homeNewListNum .'" /></td>
		</tr>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('网站公','告列表页') .'
		'. AdmArea::ListMode('显示模式','announListMode',$TS_announListMode) .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="homeAnnounListNum" name="homeAnnounListNum" size="50" style="width:50px;" value="'. $TS_homeAnnounListNum .'" /></td>
		</tr>
		'. Skin::ItemTrBottom() .'

		<tbody style="display:none;">
		'. AdmArea::ListMode('会员文章显示模式','userListMode',$TS_userListMode) .'
		<tr>
			<td align="right" class="font1_2d">会员文章每页条数：</td>
			<td align="left"><input type="text" id="userListNum" name="userListNum" size="50" style="width:50px;" value="'. $TS_userListNum .'" /></td>
		</tr>
		</tbody>

		'. Skin::ItemTrTop('搜索','列表页') .'
		<tr>
			<td align="right">搜索页：</td>
			<td>
				<label><input type="radio" id="isSearch1" name="isSearch" value="1" '. Is::Checked($TS_isSearch,1) .' onclick="CheckSearch();" />开启</label>&ensp;&ensp;
				<label title="搜索页开启，但搜索页不被搜索引擎追踪，采用nofollow属性"><input type="radio" id="isSearch2" name="isSearch" value="2" '. Is::Checked($TS_isSearch,2) .' onclick="CheckSearch();" />开启（但不被搜索引擎追踪）</label>&ensp;&ensp;
				<label><input type="radio" id="isSearch0" name="isSearch" value="0" '. Is::Checked($TS_isSearch,0) .' onclick="CheckSearch();" />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="searchBox">
		'. AdmArea::ListMode('显示模式','searchListMode',$TS_searchListMode) .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="searchListNum" name="searchListNum" size="50" style="width:50px;" value="'. $TS_searchListNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">搜索词允许特殊字符：</td>
			<td align="left" colspan="4">
				<label><input type="checkbox" name="searchAllowStr[]" value="[(]" '. Is::InstrChecked($TS_searchAllowStr,'[(]') .'>“(”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[)]" '. Is::InstrChecked($TS_searchAllowStr,'[)]') .'>“)”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[-]" '. Is::InstrChecked($TS_searchAllowStr,'[-]') .'>“-”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[/]" '. Is::InstrChecked($TS_searchAllowStr,'[/]') .'>“/”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[<]" '. Is::InstrChecked($TS_searchAllowStr,'[<]') .'>“<”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[>]" '. Is::InstrChecked($TS_searchAllowStr,'[>]') .'>“>”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[ ]" '. Is::InstrChecked($TS_searchAllowStr,'[ ]') .'>“ ”(空格)</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[%]" '. Is::InstrChecked($TS_searchAllowStr,'[%]') .'>“%”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[_]" '. Is::InstrChecked($TS_searchAllowStr,'[_]') .'>“_”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[[]" '. Is::InstrChecked($TS_searchAllowStr,'[[]') .'>“[”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[]]" '. Is::InstrChecked($TS_searchAllowStr,'[]]') .'>“]”</label>&ensp;&ensp;
				<span style="color:red;">(建议不要打钩，特殊字符会提高网站被SQL注入危险性)</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				搜索禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="searchBadStr" name="searchBadStr" rows="5" cols="40" style="width:500px; height:65px;">'. $TS_searchBadStr .'</textarea></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('标签','列表页') .'
		<tr>
			<td align="right">标签页：</td>
			<td>
				<label><input type="radio" id="isMark1" name="isMark" value="1" '. Is::Checked($TS_isMark,1) .' onclick="CheckMark();" />开启</label>&ensp;&ensp;
				<label title="标签页开启，但标签的超链接不被搜索引擎追踪，采用nofollow属性"><input type="radio" id="isMark2" name="isMark" value="2" '. Is::Checked($TS_isMark,2) .' onclick="CheckMark();" />开启（但不被搜索引擎追踪）</label>&ensp;&ensp;
				<label><input type="radio" id="isMark0" name="isMark" value="0" '. Is::Checked($TS_isMark,0) .' onclick="CheckMark();" />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="markBox">
		'. AdmArea::ListMode('显示模式','markListMode',$TS_markListMode,'font1_2d') .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="markListNum" name="markListNum" size="50" style="width:50px;" value="'. $TS_markListNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				标签页禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="markBadStr" name="markBadStr" rows="5" cols="40" style="width:500px; height:65px;">'. $TS_markBadStr .'</textarea></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'
		</table>


		<table id="tabDet" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;"></td></tr>
		<tr>
			<td align="right" class="fontRed">文章内容页：</td>
			<td align="left" class="fontRed">请到【文章管理→文章参数设置】-[前台文章内容页设置]选项卡 设置</td>
		</tr>
		</table>


		<table id="tabMessage" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr>
			<td class="tabLeftWidth"></td>
			<td style="color:red;">
				'. AppWap::Show('<b>（WAP手机版的留言版，请到【移动端管理→WAP手机版】-[评论/留言]设置）</b>') .'
			</td>
		</tr>
		<tr>
			<td align="right">留言板：</td>
			<td>
				<label><input type="radio" id="isMessage1" name="isMessage" value="1" '. Is::Checked($TS_isMessage,1) .' onclick="CheckMessage();" />启用</label>&ensp;&ensp;
				<label><input type="radio" id="isMessage10" name="isMessage" value="10" '. Is::Checked($TS_isMessage,10) .' onclick="CheckMessage();" />仅限会员</label>&ensp;&ensp;
				<label><input type="radio" id="isMessage0" name="isMessage" value="0" '. Is::Checked($TS_isMessage,0) .' onclick="CheckMessage();" />禁用</label>&ensp;&ensp;
				'. $wapNoteArr['isMessage'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言板名称：</td>
			<td>
				<input type="text" id="messageName" name="messageName" value="'. $TS_messageName .'" style="width:110px;" />
				'. $wapNoteArr['messageName'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				留言板页面关键字：<br />
				<span class="font3_2">多个用英文逗号“,”隔开</span>
			</td>
			<td style="padding-bottom:4px;">
				<textarea id="messageWebKey" name="messageWebKey" rows="5" cols="40" style="width:510px; height:30px;">'. $TS_messageWebKey .'</textarea>
				<div>'. $wapNoteArr['messageWebKey'] .'</div>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				留言板页面描述：<br />
				<span class="font3_2">（便于搜索引擎搜到）</span>
			</td>
			<td style="padding-bottom:4px;">
				<textarea id="messageWebDesc" name="messageWebDesc" rows="5" cols="40" style="width:510px; height:45px;">'. $TS_messageWebDesc .'</textarea>
				<div>'. $wapNoteArr['messageWebDesc'] .'</div>
			</td>
		</tr>
		<tr id="messageCloseBox">
			<td align="right" class="font1_2d" valign="top">留言板关闭信息：</td>
			<td>
				<textarea id="messageCloseNote" name="messageCloseNote" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("messageCloseNote",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($TS_messageCloseNote,'textarea') .'</textarea>
				<div>'. $wapNoteArr['messageCloseNote'] .'</div>
			</td>
		</tr>
		<tbody id="messageBox" style="display:none;">
		<tr>
			<td align="right">留言板填写框位置：</td>
			<td>
				<label><input type="radio" name="messageMode" value="0" '. Is::Checked($TS_messageMode,0) .' />底部</label>&ensp;&ensp;
				<label><input type="radio" name="messageMode" value="1" '. Is::Checked($TS_messageMode,1) .' />头部</label>&ensp;&ensp;
				'. $wapNoteArr['messageMode'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言板每页显示数量：</td>
			<td align="left">
				<input type="text" id="messageNum" name="messageNum" size="50" style="width:50px;" value="'. $TS_messageNum .'" />
				'. $wapNoteArr['messageNum'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言连续发言间隔秒数：</td>
			<td align="left">
				<input type="text" id="messageSecond" name="messageSecond" size="50" style="width:50px;" value="'. $TS_messageSecond .'" /> 秒
				'. $wapNoteArr['messageSecond'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言审核：</td>
			<td>
				<label><input type="radio" name="messageAudit" value="0" '. Is::Checked($TS_messageAudit,0) .' />需审核</label>&ensp;&ensp;
				<label><input type="radio" name="messageAudit" value="1" '. Is::Checked($TS_messageAudit,1) .' />无需审核</label>&ensp;&ensp;
				'. $wapNoteArr['messageAudit'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言最大字数：</td>
			<td align="left">
				<input type="text" id="messageMaxLen" name="messageMaxLen" size="50" style="width:50px;" value="'. $TS_messageMaxLen .'" />
				'. $wapNoteArr['messageMaxLen'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言回复称呼：</td>
			<td>
				<input type="text" id="messageAdminName" name="messageAdminName" size="50" style="width:110px;" value="'. $TS_messageAdminName .'" />
				'. $wapNoteArr['messageAdminName'] .'
			</td>
		</tr>
		</tbody>
		<tr style="display:none;" class="font1_2d">
			<td align="right">留言/评论热门评论：</td>
			<td align="left">
				显示数量：<input type="text" id="messageHotNum" name="messageHotNum" size="50" style="width:50px;" value="'. $TS_messageHotNum .'" />，
				要求“顶”投票数至少<input type="text" id="messageVoteNum" name="messageVoteNum" size="50" style="width:50px;" value="'. $TS_messageVoteNum .'" />个
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">
				留言/评论/回帖禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;">
				<textarea id="messageBadWord" name="messageBadWord" rows="5" cols="40" style="width:500px; height:65px;">'. $TS_messageBadWord .'</textarea>
				'. $wapNoteArr['messageBadWord'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言/评论/回帖跟随验证：</td>
			<td>
				<label><input type="radio" name="messageRndMd5" value="1" '. Is::Checked($TS_messageRndMd5,1) .' />开启</label>&ensp;&ensp;
				<label><input type="radio" name="messageRndMd5" value="2" '. Is::Checked($TS_messageRndMd5,2) .' />开启(过期自动更新)</label>&ensp;&ensp;
				<label><input type="radio" name="messageRndMd5" value="0" '. Is::Checked($TS_messageRndMd5,0) .' />关闭</label>&ensp;&ensp;
				'. $wapNoteArr['messageRndMd5'] .'
				&ensp;&ensp;<span class="font2_2">（建议开启，可以一定程度防止机器灌水）</span>
			</td>
		</tr>
		<tr>
			<td align="right">留言/评论附加功能：</td>
			<td>
				<label><input type="checkbox" name="messageEvent[]" value="|filterUrl|" '. Is::InstrChecked($TS_messageEvent,'|filterUrl|') .'/>过滤网址</label>&ensp;&ensp;
				<label><input type="checkbox" name="messageEvent[]" value="|noRevName|" '. Is::InstrChecked($TS_messageEvent,'|noRevName|') .'/>游客不能编辑昵称</label>&ensp;&ensp;
				<label><input type="checkbox" name="messageEvent[]" value="|IP|" '. Is::InstrChecked($TS_messageEvent,'|IP|') .'/>显示IP地址</label>&ensp;&ensp;
				'. $wapNoteArr['messageEvent'] .'
			</td>
		</tr>
		</table>
		');

		if (! AppBase::Jud()){
			$skin->PaySoftBox('tabBuy', $skin->TixingNoApp('商业版基础包'));
			echo('<input type="hidden" id="authState" name="authState" value="false" />');
			
		}elseif ($sysAdminArr['SA_isLan'] == 1 && $sysAdminArr['SA_sendUrlMode'] == 0){
			$skin->PaySoftBox('tabBuy', $skin->TixingLan());
			echo('<input type="hidden" id="authState" name="authState" value="false" />');
			
		}else{

			$paraArr = array(
				'TS_navWidthMode'		=> $TS_navWidthMode ,
				'TS_isTopAd'			=> $TS_isTopAd ,
				'TS_topAdCode'			=> $TS_topAdCode ,
				'searchArea1'			=> $searchArea1 ,
				'searchArea1_title'		=> $searchArea1_title ,
				'searchArea1_rank'		=> $searchArea1_rank ,
				'searchArea2'			=> $searchArea2 ,
				'searchArea2_title'		=> $searchArea2_title ,
				'searchArea2_rank'		=> $searchArea2_rank ,
				'searchArea3'			=> $searchArea3 ,
				'searchArea3_title'		=> $searchArea3_title ,
				'searchArea3_rank'		=> $searchArea3_rank ,
				'searchArea4'			=> $searchArea4 ,
				'searchArea4_title'		=> $searchArea4_title ,
				'searchArea4_rank'		=> $searchArea4_rank ,
				'searchArea5'			=> $searchArea5 ,
				'searchArea5_title'		=> $searchArea5_title ,
				'searchArea5_rank'		=> $searchArea5_rank ,
				'searchArea5_addi1'		=> $searchArea5_addi1 ,
				'searchArea5_addi2'		=> $searchArea5_addi2 ,
				'searchArea6'			=> $searchArea6 ,
				'searchArea6_title'		=> $searchArea6_title ,
				'searchArea6_rank'		=> $searchArea6_rank ,
				'searchArea6_addi1'		=> $searchArea6_addi1 ,
				'searchArea6_addi2'		=> $searchArea6_addi2 ,
				'TS_subWebLR'			=> $TS_subWebLR ,
				'TS_messageMode'		=> $TS_messageMode ,
				'TS_messageEvent'		=> $TS_messageEvent ,
				'TS_replyMode'			=> $TS_replyMode ,
				'TS_logoAreaStr'		=> $TS_logoAreaStr ,
				'TS_isLogoAdd'			=> $TS_isLogoAdd ,
				'TS_logoAddAnnoun'		=> $TS_logoAddAnnoun ,
				'TS_logoListMode'		=> $TS_logoListMode ,
				'TS_logoNote'			=> $TS_logoNote ,
				'TS_isImgBanner'		=> $TS_isImgBanner ,
				'TS_imgBannerH'			=> $TS_imgBannerH ,
				'TS_isQqServer'			=> $TS_isQqServer ,
				'TS_qqServerCode'		=> $TS_qqServerCode ,
				'judBbs'				=> AppBbs::Jud() ? 1 : 0 ,
				'judLogo'				=> AppLogoAdd::Jud() ? 1 : 0 ,
				'isCloseStudyUrl'		=> strpos($sysAdminArr['SA_infoCloseArea'],'|tplSys|') === false ? 0 : 1,
				);

			$getWebHtml = OTauthWeb('tplSys', 'tplSys_V7.36.php', $paraArr);
			if (strpos($getWebHtml,'(OTCMS)') === false){
				$authAlertStr = $skin->TixingNoGet($getWebHtml);
				$getWebHtml = ''.
					$skin->PaySoftBox('tabBuy', $authAlertStr, false, true) .
					'<input type="hidden" id="authState" name="authState" value="false" />';
			}else{
				echo('
				<script language="javascript" type="text/javascript">
				$id("buyBox").style.display = "";
				</script>
				');
			}
			echo($getWebHtml);
		}

		echo('
		<div class="tabMenuSubmit"><input type="image" src="'. AdmTpl::ImgSrc('button_save') .'" /></div>
	</div>

	</form>
	');

}

?>